<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>加减法口算练习系统-v0.3</title>
    <style>
        body { font-family: Arial, sans-serif; max-width: 1200px; margin: 0 auto; padding: 20px; }
        h1 { color: #333; text-align: center; }
        .stats { text-align: center; color: #666; margin: 10px 0 20px; }
        .exercise-container { margin: 30px auto; display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px; }
        .exercise { font-size: 16px; padding: 12px; border: 1px solid #ddd;
            border-radius: 5px; background-color: #f9f9f9; }
        .addition { border-left: 4px solid #4CAF50; }
        .subtraction { border-left: 4px solid #2196F3; }
        .answer { color: #666; font-size: 14px; margin-top: 5px; display: none; }
        .controls { text-align: center; margin: 20px; }
        button { padding: 8px 16px; font-size: 16px; cursor: pointer;
            background-color: #4CAF50; color: white; border: none; border-radius: 4px; margin: 0 5px; }
        button:hover { background-color: #45a049; }
        #hideBtn { background-color: #f44336; }
        #hideBtn:hover { background-color: #d32f2f; }
    </style>
    <script>
        function showAnswers() {
            const answers = document.getElementsByClassName('answer');
            for (let ans of answers) ans.style.display = 'block';
        }
        function hideAnswers() {
            const answers = document.getElementsByClassName('answer');
            for (let ans of answers) ans.style.display = 'none';
        }
    </script>
</head>
<body>
    <h1>加减法口算练习系统-v0.3</h1>
    <div class="stats">
        共50题（加法：19题，减法：31题）
    </div>
    <div class="controls">
        <button onclick="showAnswers()">显示答案</button>
        <button id="hideBtn" onclick="hideAnswers()">隐藏答案</button>
    </div>
    <div class="exercise-container">
        <div class="exercise subtraction">
            <span class="number">1. </span>
            <span class="expression">86 - 48 = ?</span>
            <div class="answer">答案: 38</div>
        </div>
        <div class="exercise addition">
            <span class="number">2. </span>
            <span class="expression">39 + 45 = ?</span>
            <div class="answer">答案: 84</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">3. </span>
            <span class="expression">98 - 8 = ?</span>
            <div class="answer">答案: 90</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">4. </span>
            <span class="expression">75 - 47 = ?</span>
            <div class="answer">答案: 28</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">5. </span>
            <span class="expression">85 - 3 = ?</span>
            <div class="answer">答案: 82</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">6. </span>
            <span class="expression">79 - 62 = ?</span>
            <div class="answer">答案: 17</div>
        </div>
        <div class="exercise addition">
            <span class="number">7. </span>
            <span class="expression">36 + 56 = ?</span>
            <div class="answer">答案: 92</div>
        </div>
        <div class="exercise addition">
            <span class="number">8. </span>
            <span class="expression">37 + 45 = ?</span>
            <div class="answer">答案: 82</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">9. </span>
            <span class="expression">81 - 48 = ?</span>
            <div class="answer">答案: 33</div>
        </div>
        <div class="exercise addition">
            <span class="number">10. </span>
            <span class="expression">17 + 27 = ?</span>
            <div class="answer">答案: 44</div>
        </div>
        <div class="exercise addition">
            <span class="number">11. </span>
            <span class="expression">22 + 42 = ?</span>
            <div class="answer">答案: 64</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">12. </span>
            <span class="expression">96 - 57 = ?</span>
            <div class="answer">答案: 39</div>
        </div>
        <div class="exercise addition">
            <span class="number">13. </span>
            <span class="expression">7 + 9 = ?</span>
            <div class="answer">答案: 16</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">14. </span>
            <span class="expression">69 - 13 = ?</span>
            <div class="answer">答案: 56</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">15. </span>
            <span class="expression">44 - 9 = ?</span>
            <div class="answer">答案: 35</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">16. </span>
            <span class="expression">60 - 38 = ?</span>
            <div class="answer">答案: 22</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">17. </span>
            <span class="expression">82 - 34 = ?</span>
            <div class="answer">答案: 48</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">18. </span>
            <span class="expression">69 - 46 = ?</span>
            <div class="answer">答案: 23</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">19. </span>
            <span class="expression">23 - 11 = ?</span>
            <div class="answer">答案: 12</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">20. </span>
            <span class="expression">24 - 10 = ?</span>
            <div class="answer">答案: 14</div>
        </div>
        <div class="exercise addition">
            <span class="number">21. </span>
            <span class="expression">1 + 95 = ?</span>
            <div class="answer">答案: 96</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">22. </span>
            <span class="expression">90 - 58 = ?</span>
            <div class="answer">答案: 32</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">23. </span>
            <span class="expression">83 - 24 = ?</span>
            <div class="answer">答案: 59</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">24. </span>
            <span class="expression">62 - 0 = ?</span>
            <div class="answer">答案: 62</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">25. </span>
            <span class="expression">47 - 42 = ?</span>
            <div class="answer">答案: 5</div>
        </div>
        <div class="exercise addition">
            <span class="number">26. </span>
            <span class="expression">10 + 42 = ?</span>
            <div class="answer">答案: 52</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">27. </span>
            <span class="expression">44 - 25 = ?</span>
            <div class="answer">答案: 19</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">28. </span>
            <span class="expression">91 - 72 = ?</span>
            <div class="answer">答案: 19</div>
        </div>
        <div class="exercise addition">
            <span class="number">29. </span>
            <span class="expression">13 + 35 = ?</span>
            <div class="answer">答案: 48</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">30. </span>
            <span class="expression">38 - 12 = ?</span>
            <div class="answer">答案: 26</div>
        </div>
        <div class="exercise addition">
            <span class="number">31. </span>
            <span class="expression">5 + 31 = ?</span>
            <div class="answer">答案: 36</div>
        </div>
        <div class="exercise addition">
            <span class="number">32. </span>
            <span class="expression">46 + 47 = ?</span>
            <div class="answer">答案: 93</div>
        </div>
        <div class="exercise addition">
            <span class="number">33. </span>
            <span class="expression">37 + 57 = ?</span>
            <div class="answer">答案: 94</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">34. </span>
            <span class="expression">87 - 42 = ?</span>
            <div class="answer">答案: 45</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">35. </span>
            <span class="expression">28 - 22 = ?</span>
            <div class="answer">答案: 6</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">36. </span>
            <span class="expression">71 - 8 = ?</span>
            <div class="answer">答案: 63</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">37. </span>
            <span class="expression">73 - 36 = ?</span>
            <div class="answer">答案: 37</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">38. </span>
            <span class="expression">80 - 10 = ?</span>
            <div class="answer">答案: 70</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">39. </span>
            <span class="expression">79 - 52 = ?</span>
            <div class="answer">答案: 27</div>
        </div>
        <div class="exercise addition">
            <span class="number">40. </span>
            <span class="expression">7 + 16 = ?</span>
            <div class="answer">答案: 23</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">41. </span>
            <span class="expression">91 - 63 = ?</span>
            <div class="answer">答案: 28</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">42. </span>
            <span class="expression">45 - 10 = ?</span>
            <div class="answer">答案: 35</div>
        </div>
        <div class="exercise addition">
            <span class="number">43. </span>
            <span class="expression">2 + 84 = ?</span>
            <div class="answer">答案: 86</div>
        </div>
        <div class="exercise addition">
            <span class="number">44. </span>
            <span class="expression">11 + 87 = ?</span>
            <div class="answer">答案: 98</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">45. </span>
            <span class="expression">73 - 26 = ?</span>
            <div class="answer">答案: 47</div>
        </div>
        <div class="exercise addition">
            <span class="number">46. </span>
            <span class="expression">9 + 77 = ?</span>
            <div class="answer">答案: 86</div>
        </div>
        <div class="exercise subtraction">
            <span class="number">47. </span>
            <span class="expression">80 - 51 = ?</span>
            <div class="answer">答案: 29</div>
        </div>
        <div class="exercise addition">
            <span class="number">48. </span>
            <span class="expression">47 + 50 = ?</span>
            <div class="answer">答案: 97</div>
        </div>
        <div class="exercise addition">
            <span class="number">49. </span>
            <span class="expression">13 + 16 = ?</span>
            <div class="answer">答案: 29</div>
        </div>
        <div class="exercise addition">
            <span class="number">50. </span>
            <span class="expression">23 + 26 = ?</span>
            <div class="answer">答案: 49</div>
        </div>
    </div>
</body>
</html>
